package com.lecture.java8.cmd;

public class Test {
    public static void main(String[] args) {
        CmdResult result = new CmdResult();
        LinuxCmdExecutor executor = new LinuxCmdExecutor(result);
        String cmd = "dir";
        CmdResult execute = executor.execute(cmd);
        System.out.println("------------------------");
        System.out.println(result.getStdout());
        System.out.println(execute.getStdout());
        System.out.println("------------------------");

    }
}
